package nl.mad.drib.util.sqlrunner;

import java.io.Reader;
import java.sql.Connection;

/**
 * Capable of running an SQL script.
 * 
 * @author Jeroen van Schagen
 * @since 04-05-2011
 */
public interface SqlScriptRunner {

    /**
     * Perform all SQL statements defined inside a script.
     * @param scriptReader provides the content of our script
     * @param connection our connection to the database
     */
    void runScript(Reader scriptReader, Connection connection);

}
